package com.ys.goods.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ys.goods.service.GoodsService;
import com.ys.pojo.TblGoods;

@Controller
@RequestMapping("/goods")
public class GoodsAction {
	@Autowired
	private GoodsService goodsService;
	
	//商品
	@RequestMapping("/goods_list")
	public String getGoodsList(TblGoods goods,Model model){
		List<TblGoods> goodsList = goodsService.getGoodsList(goods);
		model.addAttribute("goodsList", goodsList);
		return "/jsp/bootstrap/right/goods.jsp";
	}
}
